package com.xdtech.play.service;

import java.util.List;

import com.xdtech.common.service.IBaseService;
import com.xdtech.play.model.PlayMember;
import com.xdtech.play.vo.PlayMemberItem;

/**
 * 
 * @author max.zheng
 * @create 2016-05-08 23:42:50
 * @since 1.0
 * @see
 */
public interface PlayMemberService extends IBaseService<PlayMember>{

	/**
	 * 保存更新信息
	 * @author max.zheng
	 * @create 2016-05-08 23:42:50
	 * @modified by
	 * @param item
	 * @return
	 */
	boolean saveOrUpdatePlayMember(PlayMemberItem item);

	/**
	 * 加载记录信息
	 * @author max.zheng
	 * @create 2016-05-08 23:42:50
	 * @modified by
	 * @param newId
	 * @return
	 */
	PlayMemberItem loadPlayMemberItem(Long playMemberId);

	/**
	 * 根据id号删除记录信息
	 * @author max.zheng
	 * @create 2016-05-08 23:42:50
	 * @modified by
	 * @param id
	 * @return
	 */
	boolean deletePlayMemberInfo(long id);

	/**
	 * 
	 * @author max.zheng
	 * @create 2016-05-08 23:42:50
	 * @modified by
	 * @param playMemberIds
	 */
	boolean deletePlayMemberInfo(List<Long> playMemberIds);
	
	/**
	 * 加载vo列表条目
	 * @author max.zheng
	 * @create 2016-05-08 23:42:50
	 * @modified by
	 * @return
	 */
	List<PlayMemberItem> loadItems();

	/**
	 * 
	 * 检测会员名称是否唯一
	 * @since 2016-5-9 下午1:50:37
	 * @param valueOf
	 * @param name
	 * @return
	 */
	boolean checkNameIsExist(Long valueOf, String name);
}
